package com.rw.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 租赁合同信息
 * </p>
 *
 * @author Rabit
 * @since 2021-12-20
 */
@TableName("rent_info")
@Data
public class RentInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 租赁价格
     */
    private Double rentPrice;

    /**
     * 甲方信息-user_info的id
     */
    private Integer firstInfoId;

    /**
     * 乙方信息-admin_info的id
     */
    private Integer secondInfoId;

    /**
     * 租赁协议
     */
    private String rentDesc;

    /**
     * 租赁开始时间
     */
    private LocalDateTime startTime;

    /**
     * 租赁结束时间
     */
    private LocalDateTime endTime;

}
